package com.thinkgem.jeesite.frame.pm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.thinkgem.jeesite.kpoint.core.base.KpointBaseEntity;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 参数Entity
 *
 * @author kongxiangsheng
 * @version 2018-09-03
 */
@Data
public class PmParam extends KpointBaseEntity {
    public static final String COL_CODE = "`code`";
    public static final String COL_NAME = "`name`";
    public static final String COL_VALUE = "`value`";
    public static final String COL_CLASSIFY = "`classify`";

    private static final long serialVersionUID = 1L;
    /**
     * 参数编码
     */
    @TableField(condition = SqlCondition.LIKE)
    @Length(min = 1, max = 64, message = "参数编码长度必须介于 1 和 64 之间")
    private String code;
    /**
     * 参数名称
     */
    @TableField(condition = SqlCondition.LIKE)
    @Length(min = 1, max = 64, message = "参数名称长度必须介于 1 和 64 之间")
    private String name;
    /**
     * 参数值
     */
    @TableField(condition = SqlCondition.LIKE)
    @Length(min = 0, max = 255, message = "参数值长度必须介于 0 和 255 之间")
    private String value;
    /**
     * 参数分类
     */
    @Length(min = 1, max = 30, message = "参数分类长度必须介于 1 和 30 之间")
    private String classify;
    /**
     * 拓展字段1
     */
    private String extAttr1;
    /**
     * 拓展字段2
     */
    private String extAttr2;
    /**
     * 拓展字段3
     */
    private String extAttr3;
    /**
     * 拓展字段4
     */
    private String extAttr4;
    /**
     * 拓展字段5
     */
    private String extAttr5;
    /**
     * 拓展字段6
     */
    private String extAttr6;
    /**
     * 拓展字段7
     */
    private String extAttr7;

}